﻿using Platformer_Example.Content.Images.Player;
using Platformer_Example.Controller.Input;
using Platformer_Example.Controller.Terrain;
using System;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Platformer_Example.Controller.Character.Player
{
    public partial class Player
    {
        protected override void CreateFallStateObjects()
        {
        }

        protected override void InitializeFallState()
        {
            if (IsCarryingObject)
            {
                Character.Sprite = SpritesheetPlayer.GetSprite(SpritesheetPlayer.JumpState.FallCarry);
                Character.OriginAbsolute = new TE_Vector2(8, 32);
                CarriedObject.Position = new TE_Vector2(0, -21);
            }
            else
            {
                Character.Sprite = SpritesheetPlayer.GetSprite(SpritesheetPlayer.JumpState.Fall);
                Character.OriginAbsolute = new TE_Vector2(8, 32);
            }
            
        }

        protected override void UpdateFallState(TimeSpan gameTime)
        {
        }

        protected override void EndFallState()
        {
        }

        protected override void OnKeyPressFall(InputState.Key key)
        {
        }

        protected override void OnKeyReleaseFall(InputState.Key key)
        {
        }
    }
}